package cn.sofwin.blog.service;

import cn.sofwin.blog.entity.Article;
import cn.sofwin.blog.entity.User;
import org.apache.ibatis.session.SqlSession;

import java.util.List;

/**
 * 服务层
 * @author zx
 * @since 1.0
 *
 */
public interface ArticleService {

    SqlSession getSession();

    List<Article> all();

    Article get(Integer id);

    void addReadTotal(String id);
    //发表文章
    void publish(User user, String title, String summary, String content);

    //修改文章
    void edit(User user, String id, String title, String summary, String content);

    void remove(Integer aid);

}